package com.dq.domain.statistics;

import com.dq.vo.baseVo.VO;
import com.dq.domain.base.BaseEntity;
import com.dq.domain.goods.Product;
import com.dq.domain.org.Org;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import java.math.BigDecimal;

/**
 * @Author luchangtong
 * @Date 2020/3/23 11:49
 */
@Data
@Entity
@ApiModel("产品销售统计（每个店面、整个市场）")
public class ProductSaleStatistics extends BaseEntity implements VO.ToVO{
    @ApiModelProperty("门店")
    @ManyToOne
    protected Org org;
    @ApiModelProperty("数量")
    protected Long number;
    @ApiModelProperty("销售额")
    protected BigDecimal salePrice;
    @ApiModelProperty("产品")
    @ManyToOne
    protected Product product;
    @Override
    public VO toVO(boolean isRecursion) {
        return null;
    }
}
